package com.cp.weixin.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
public class IndexController {
    static Logger log = LogManager.getLogger();
    public static String loginPara = "18611031970";

    @GetMapping({"/", "/index", "/index.html"})
    public String index() {
        return "redirect:/blog";
    }

    @RequestMapping(value = "/toLogin")
    public String toLogin() {
        return "/login.html";
    }

    @RequestMapping(value = "/search")
    public String es() {
        return "chengyu.html";
    }

}
